package org.bitterorange.flansmodslain.models;

import org.bukkit.entity.Player;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;

public class BukkitVehicleDamageEvent extends Event {
    private final Player attacker;
    private final String vehicleName;
    private final float damage;
    private final float maxDamage;
    private static final HandlerList Handlers = new HandlerList();

    public BukkitVehicleDamageEvent(Player attacker, String vehicleName, float damage, float maxDamage) {
        this.attacker = attacker;
        this.vehicleName = vehicleName;
        this.damage = damage;
        this.maxDamage = maxDamage;
    }

    public Player getAttacker() {
        return attacker;
    }

    public String getVehicleName() {
        return vehicleName;
    }

    public float getDamage() {
        return damage;
    }

    public float getMaxDamage() {
        return maxDamage;
    }

    public static HandlerList getHandlerList() {
        return Handlers;
    }

    @Override
    public HandlerList getHandlers() {
        return Handlers;
    }
}
